<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> 

<script>
function showicon(n){
	$("#CONFICON_" + n).show();
}

function hideicon(n){
	$("#CONFICON_" + n).hide();
}

function edit(n){
	$("#TR_" + n).attr("onmousemove","");
	$("#TR_" + n).attr("onmouseout","");
	$("#SHOW_" + n).hide();
	$("#EDIT_" + n).show();
	$("#CONFICON_" + n).hide();
	$("#EDITICON_" + n).show();
}

function editsubmit(n){
	$.post("${appPath}/option/private/update.htm",$('#UsersForm').serialize(),function(data){
		if(data){
			$("#SHOW_" + n).html($("#INPUT_" + n).val());
			showMessage("設定修改成功",1);			
			if(n == 'FULLNAME'){
				$("#CURRENT_USER_FULLNAME").html($("#INPUT_" + n).val());
				document.title = $("#INPUT_" + n).val() + " - 基因改造植物安全管理知識庫";
			}			
		}else{
			showMessage("設定修改失敗",2);
		}		
		$("#TR_" + n).attr("onmousemove","showicon('"+n+"');");
		$("#TR_" + n).attr("onmouseout","hideicon('"+n+"');");
		$("#SHOW_" + n).show();
		$("#EDIT_" + n).hide();
		$("#CONFICON_" + n).hide();
		$("#EDITICON_" + n).hide();	
		
	});
}

function cancel(n){
	$("#SHOW_" + n).show();
	$("#EDIT_" + n).hide();
	$("#CONFICON_" + n).hide();
	$("#EDITICON_" + n).hide();
	setTimeout("delayshow('"+n+"');",1000);
	document.getElementById("UsersForm").reset();
}

function delayshow(n){
	$("#TR_" + n).attr("onmousemove","showicon('"+n+"');");
	$("#TR_" + n).attr("onmouseout","hideicon('"+n+"');");
}


</script>


<div id="page">
	<div id="page-bgtop">
		<div id="page-bgbtm">
			<div id="content">
				<div class="post">
					<%-- 
					<h2 class="title inner">帳號設定</h2>
					
					<div style="clear: both;">&nbsp;</div>
					--%>
					<div class="entry">
						<%@ include file="form.jsp" %>					
					</div>
				</div>
				<div style="clear: both;">&nbsp;</div>
			</div>
			<!-- end #content -->
			
			<%@ include file="/WEB-INF/jsp/common/submenu09.jsp" %>			
			<div style="clear: both;">&nbsp;</div>
		</div>
	</div>
</div>
<!-- end #page -->